<div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
         
          <div class="nav-collapse">
            <ul class="nav">
              <li class="">
                <a href="/index.php">Home</a>
              </li>
	      {if $user_sign_in eq true}
	      <li>
	        <a href="#" onclick="javascript:get_main('photo')">Photo</a>
	      </li>
	      <li>
	        <a href="#" onclick="javascript:get_main('diary')">Message</a>
	      </li>
	      <li style="margin-left:180px;margin-top:5px">
 			<input type="text" id="keyword" name="keyword" class="input-large search-query">
			<input type="button" class="btn btn-info" style="margin-top:0px" onclick="javascript:get_main('search')"  value="Search"></input>
			<input type="button" class="btn btn-primary" style="margin-top:0px" onclick="javascript:get_main('advanced_search')"  value="Advanced"></input>

 	      </li>
	      {/if}
	    </ul>
            {if $user_sign_in eq false}
		<form class="well form-inline" id="nav_bar_form">
			<div id="c_username" class="control-group">
				 <span id="login_msg"></span>
 				 <input type="text" class="input-medium" name="i_username" id="i_username" placeholder="Email">
				 <input type="password" class="input-medium" name="i_pwd" id="i_pwd" placeholder="Password">
				<label type="checkbox"><input type="checkbox"><span>  remember me </span></label>
				 <input type="button" class="btn" onclick="javascript:chk_user()" value="Sign In"></input>
				 <input  type="button" id="pop-register" class="btn" onclick="javascrpt:pop_reg_form()" value="Sign Up"></input>
			</div>
		</form>
	    {else}
		<form class="well form-inline" id="nav_bar_form">
			Welcome {$realname}
			<a href="#" onclick="javascript:log_out();">Log Out</a>
	         </form>
            {/if}
          </div>
        </div>
      </div>
</div>
